package com.baizhi.entity;

import com.baizhi.util.StringUtil;

import java.util.Arrays;


public class Question {
	private int id;
	private int questiontype;
	private String title;
	private String options;
	private String[] optionArr ;
	private int other;
	private int otherstyle;
	private String otherselectoptions;
	private String[] otherSelectOptionArr ;
	private String matrixrowtitles;
	private String[] matrixRowTitleArr ;
	private String matrixcoltitles;
	private String[] matrixColTitleArr ;
	private String matrixselectoptions;
	private String[] matrixSelectOptionArr ;
	private int pageid;
	private static final String RN = "\r\n" ;
	public String[] getMatrixRowTitleArr() {
		return StringUtil.str2Arr(matrixrowtitles,RN);
	}
	public void setMatrixRowTitleArr(String[] matrixRowTitleArr) {
		this.matrixRowTitleArr = matrixRowTitleArr;
	}
	public String[] getMatrixColTitleArr() {
		return StringUtil.str2Arr(matrixcoltitles,RN);
	}
	public void setMatrixColTitleArr(String[] matrixColTitleArr) {
		this.matrixColTitleArr = matrixColTitleArr;
	}
	public String[] getMatrixSelectOptionArr() {
		return StringUtil.str2Arr(matrixselectoptions,RN);
	}
	public void setMatrixSelectOptionArr(String[] matrixSelectOptionArr) {
		this.matrixSelectOptionArr = matrixSelectOptionArr;
	}
	public String[] getOtherSelectOptionArr() {
		return StringUtil.str2Arr(otherselectoptions,RN);
	}
	public void setOtherSelectOptionArr(String[] otherSelectOptionArr) {
		this.otherSelectOptionArr = otherSelectOptionArr;
	}
	public String[] getOptionArr() {
		return StringUtil.str2Arr(options,RN);
	}
	public void setOptionArr(String[] optionArr) {
		this.optionArr = optionArr;
	}
	public int getId() {
		return id;
	}
	public void setId(int id) {
		this.id = id;
	}
	public int getQuestiontype() {
		return questiontype;
	}
	public void setQuestiontype(int questiontype) {
		this.questiontype = questiontype;
	}
	public String getTitle() {
		return title;
	}
	public void setTitle(String title) {
		this.title = title;
	}
	public String getOptions() {
		return options;
	}
	public void setOptions(String options) {
		this.options = options;
	}
	public int getOther() {
		return other;
	}
	public void setOther(int other) {
		this.other = other;
	}
	public int getOtherstyle() {
		return otherstyle;
	}
	public void setOtherstyle(int otherstyle) {
		this.otherstyle = otherstyle;
	}
	public String getOtherselectoptions() {
		return otherselectoptions;
	}
	public void setOtherselectoptions(String otherselectoptions) {
		this.otherselectoptions = otherselectoptions;
	}
	public String getMatrixrowtitles() {
		return matrixrowtitles;
	}
	public void setMatrixrowtitles(String matrixrowtitles) {
		this.matrixrowtitles = matrixrowtitles;
	}
	public String getMatrixcoltitles() {
		return matrixcoltitles;
	}
	public void setMatrixcoltitles(String matrixcoltitles) {
		this.matrixcoltitles = matrixcoltitles;
	}
	public String getMatrixselectoptions() {
		return matrixselectoptions;
	}
	public void setMatrixselectoptions(String matrixselectoptions) {
		this.matrixselectoptions = matrixselectoptions;
	}
	public int getPageid() {
		return pageid;
	}
	public void setPageid(int pageid) {
		this.pageid = pageid;
	}

	@Override
	public String toString() {
		return "Question{" +
				"id=" + id +
				", questiontype=" + questiontype +
				", title='" + title + '\'' +
				", options='" + options + '\'' +
				", optionArr=" + Arrays.toString(optionArr) +
				", other=" + other +
				", otherstyle=" + otherstyle +
				", otherselectoptions='" + otherselectoptions + '\'' +
				", otherSelectOptionArr=" + Arrays.toString(otherSelectOptionArr) +
				", matrixrowtitles='" + matrixrowtitles + '\'' +
				", matrixRowTitleArr=" + Arrays.toString(matrixRowTitleArr) +
				", matrixcoltitles='" + matrixcoltitles + '\'' +
				", matrixColTitleArr=" + Arrays.toString(matrixColTitleArr) +
				", matrixselectoptions='" + matrixselectoptions + '\'' +
				", matrixSelectOptionArr=" + Arrays.toString(matrixSelectOptionArr) +
				", pageid=" + pageid +
				'}';
	}
}
